/*
** setwpos.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include <stdio.h>
#include "pictor.h"


/*
** Sets the write position for the current window pane.
*/
void setwpos(int row,int column)
{
	if(_PL_winhead != NULL) {
		_CURR_WPANE.row = (row > 0) ? (row - 1) : 0;
		_CURR_WPANE.column = (column > 0) ? (column - 1) : 0;
		if(_PL_winhead->style & WO_TEXTCURSOR)
			wsynccurs();
	}

} /* setwpos */
